package com.by.api;


import com.by.bean.ResultBean;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("sc-monio")
@RequestMapping("/api/minio")
public interface UploadClient {

    @ApiOperation(value = "上传文件")
    @PostMapping("/upload")
     ResultBean uploadFile(@RequestParam("file") MultipartFile file);
}
